package com.basic.app.controller.user;

import com.basic.app.response.AppResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * 功能描述
 *
 * @author ganxinge
 * @date 2020/7/1818:10
 */
@RestController
@RequestMapping("/user")
@Api(tags = "用户管理")
public class UserController {

    @GetMapping("list")
    @ApiOperation(value = "用户列表")
    public AppResponse<List<String>> list(){
        List<String> list = new ArrayList<>();
        list.add("1");
        list.add("2");
        list.add("3");
        return new AppResponse(list);
    }

}
